package cn.pomit.springbootwork.config.client.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Service;

@RefreshScope
@Service
public class ConfigInfoService {
	@Value("${git.value}")
	private String gitValue;
	@Value("${loc.value}")
	private String locValue;

	public String locValue() {
		System.out.println(locValue);
		return locValue;
	}

	public String gitValue() {
		System.out.println(gitValue);
		return gitValue;
	}

}
